<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      input {
        width: 1200px;
        height: 100px;
      }
    </style>
  </head>
  <body>
    <p></p>
    <input type="range" min="0" max="100" value="20" />
    <script>
      let ranges = document.querySelector('input')
      let p = document.querySelector('p')
      p.innerHTML = `<p>分数:${ranges.value}</p>`
      ranges.addEventListener('change', function () {
        p.innerHTML = `<p>分数:${ranges.value}</p>`
      })
    </script>
  </body>
</html>
